<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/sample/left-right-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://www.sinosoft.com.cn/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="treeViewBean"
		value="#{commonContentViewBean.allView[0]}" />
	<ui:param name="rightViewBean"
		value="#{commonContentViewBean.allView[1]}" />
	<ui:define name="compLeft">
		<h:form id="#{compId}_form">	 
		    <p:toolbar>
				<p:toolbarGroup align="left" styleClass="portal-search-form-toolbar-only">
					<h:outputText value="论坛管理" />
				</p:toolbarGroup>
				<p:toolbarGroup align="right">
					<p:commandButton 
						oncomplete="SinoPortal.View.createWin('manage-system-dataDictionaryTable-scene','dataDictionaryTable-add','#{compId}',{type:'createdir',displayName:'新建目录'});"
						title="新建空目录" image="ui-icon-disk" value="新建空目录">
					</p:commandButton> 
				</p:toolbarGroup>
			</p:toolbar>		
			<ui:decorate
				template="/layout/iteration/tree/sino-tree-single-template.xhtml">
				<ui:param name="compViewBean" value="#{treeViewBean}" />
				<ui:param name="compId" value="#{commonContentViewBean.id}_tree" />
				<ui:param name="compSelectedNodeUpdate"
					value="#{commonContentViewBean.id}_right_form" />
			</ui:decorate>
		</h:form>
	</ui:define>

	<ui:define name="compRight">
	  <h:form id="#{commonContentViewBean.id}_right_form" >
	      xxxxxx
	  </h:form> 
	</ui:define>
</ui:composition>

